package com.fs.base.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.fs.base.pojo.Role;

/**
 * @author TiddlerCJ
 */
public interface RoleRepository extends JpaRepository<Role,String>, JpaSpecificationExecutor<Role>{
	
	/**
	 * 通过角色名称查找角色》》如：查找名称SMS_ROLE的通用角色
	 * @param roleName
	 * @return
	 */
	Role findByRoleName(String roleName);
}
